var form,$,table,layer;
layui.use(['form','jquery','table','layer'],function() {
    form = layui.form;
    $ = layui.jquery;
    table = layui.table;
    layer = layui.layer;
});

//高级检索
function search() {
    var id = $('input[name = id]').val();
    var courseNprice =  $('input[name=courseNprice]').val();
    var courseStatus = $('select[name=courseStatus]').val();
    var courseName = $('input[name = courseName]').val();
    $.ajax({
        url: '/toExamine/getAllCourse',
        dataType:'json',
        data:{
            "id":id,
            "courseNprice":courseNprice,
            "courseStatus":courseStatus,
            "courseName":courseName,
        },
        success:function (data) {
            parent.showCourseList(data.data);
            var layer = parent.layer;
            layer.close(layer.index);
        }
    });
}